package cn.stylefeng.guns.sys.core.util.common;

/**
 * @Description: TODO(用一句话描述该文件做什么)
 * @author 作者: yuanmu
 * @date 创建时间：2017年8月25日 下午3:33:53
 */
public class VerificationGenerator {

	private final String __CODE__ = "123456";
	private String token;
	private Object target;
	private static String verification = "";

	/**
	 * @return the token
	 */
	public String getToken() {
		return token;
	}

	/*public String generate() {
		return __CODE__;
	}*/
	
	public String generate() {
	    	verification="";
		for (int i = 0; i < 6; i++) {
			verification += (int) Math.floor(Math.random() * 9 + 1);
		}
		return verification;
	}

	public void destory(String token) {

	}

	/**
	 * @return the target
	 */
	public Object getTarget() {
		return target;
	}

	/**
	 * @param target
	 *            the target to set
	 */
	public void setTarget(Object target) {
		this.target = target;
	}
}
